package com.vue;

import javax.swing.JButton;
import javax.swing.JPanel;

public class ChoixMenuPan  extends JPanel{
		
	private Rejoindre_Grp rejGrpPan;
	
	private JButton annulerB;
	
	public ChoixMenuPan (Rejoindre_Grp rejoindreGrpPan) {
		
		this.rejGrpPan = rejoindreGrpPan;
	}
/*
public void initialize () {
		
		this.infosListPanel = new JPanel();
		this.infosListPanel.setPreferredSize(new Dimension(240, 80));
		this.infosListPanel.setLayout(new GridBagLayout());
		
		this.icon = new JPanel();
		this.icon.setPreferredSize(new Dimension(150, 150));
		this.icon.setBackground(Color.darkGray);
		this.iconPanel = new JPanel();
		this.iconPanel.setPreferredSize(new Dimension(240, 70));
		this.iconPanel.add(this.icon);
		
		this.nom = new JLabel("Nom : ");
		this.nom.setPreferredSize(new Dimension(100, 20));
		this.nom.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
		
		this.nomGrp = new JLabel(this.groupe.getNomGroupe());
		this.nomGrp.setPreferredSize(new Dimension(100, 20));
		this.nomGrp.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
		
		this.nb_Ut = new JLabel("Utilisateurs : ");
		this.nb_Ut.setPreferredSize(new Dimension(100, 20));
		this.nb_Ut.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
		
		this.nb_Ut2 = new JLabel("du groupe ");
		this.nb_Ut2.setPreferredSize(new Dimension(100, 20));
		this.nb_Ut2.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
		
		this.nb_UtAff = new JLabel(""+this.nb_UtGrp);
		this.nb_UtAff.setPreferredSize(new Dimension(100, 20));
		this.nb_UtAff.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
		
		this.adresse = new JLabel("Horaire repas : ");
		this.adresse.setPreferredSize(new Dimension(100, 20));
		this.adresse.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
		
		this.adresseGrp = new JLabel(this.groupe.getHoraireRepas());
		this.adresseGrp.setPreferredSize(new Dimension(100, 20));
		this.adresseGrp.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
		
		this.b_rejoindre_grp = new JButton("Rejoindre ce groupe");
		this.b_rejoindre_grp.setPreferredSize(new Dimension(150, 20));
		this.b_rejoindre_grp.addActionListener(new InfosListener(((Rejoindre_Grp) this.fenetre.getPanneauApplication()).getInfoPanel()));
	}
	
	public void build () {
			
		GridBagConstraints gridInfosGrp = new GridBagConstraints();
		gridInfosGrp.insets = new Insets(0,0,5,0);
		
		gridInfosGrp.gridy = -1;
	
		gridInfosGrp.gridy++;
		gridInfosGrp.gridx = 0;
		this.infosListPanel.add(this.nom, gridInfosGrp);
		
		gridInfosGrp.gridy = 0;
		gridInfosGrp.gridx++;
		this.infosListPanel.add(this.nomGrp, gridInfosGrp);
		
		gridInfosGrp.insets = new Insets(5,0,0,0);
		
		gridInfosGrp.gridy++;
		gridInfosGrp.gridx = 0;
		this.infosListPanel.add(this.nb_Ut, gridInfosGrp);
		
		gridInfosGrp.insets = new Insets(0,0,5,0);
		
		gridInfosGrp.gridy++;
		gridInfosGrp.gridx = 0;
		this.infosListPanel.add(this.nb_Ut2, gridInfosGrp);
		
		gridInfosGrp.insets = new Insets(5,0,0,0);
		
		gridInfosGrp.gridy = 1;
		gridInfosGrp.gridx++;
		this.infosListPanel.add(this.nb_UtAff, gridInfosGrp);
		
		gridInfosGrp.insets = new Insets(0,0,0,0);
		
		gridInfosGrp.gridy = 3;
		gridInfosGrp.gridx = 0;              
		this.infosListPanel.add(this.adresse, gridInfosGrp);
		
		gridInfosGrp.gridy = 3;
		gridInfosGrp.gridx++;
		this.infosListPanel.add(this.adresseGrp, gridInfosGrp);
		
		gridInfosGrp.insets = new Insets(5,5,5,5);
		
		gridInfosGrp.gridy++;
		gridInfosGrp.gridx=0;
		this.infosListPanel.add(this.b_rejoindre_grp, gridInfosGrp);
	}
*/
}
